<?php echo $html->css('report'); ?>
<div id="main_school" class="clearfix">
    <div id="content_school" class="clearfix">
        <div class="list_content">
        	<div style="float:left; padding-left:10px;"><?php echo $html->image('logoSchool.jpg');?></div>
            <b style="font-size:28px;">Subscribers Report</b>
        </div>
     	<?php foreach ($listSchoolSubscribers as $listSchoolSubscriber):?>
      		<h2 align="left"><?php echo $listSchoolSubscriber['School']['schoolName']; ?> Subscribers Reports</h2>
			<table border="0" cellpadding="5" cellspacing="0" width="100%">
				<tr align="left" class="title">
					<td width="260px">Username</td>
					<td>Firstname</td>
					<td width="80px">Lastname</td>
					<td width="100px">Mobile</td>
					<td width="260px">Email</td>
					<td width="80px">User Status</td>
				</tr>
				<?php foreach ($listSchoolSubscriber['Sub'] as $sub):?>
					<tr align="left">
						<td><?php echo $sub['User']['userName']; ?></td>
						<td><?php echo $sub['Subscriber']['firstName']; ?></td>
						<td><?php echo $sub['Subscriber']['lastName']; ?></td>
						<td><?php echo $phone->format_phone($sub['Contact']['phone']); ?></td>
						<td><?php echo $sub['Contact']['email']; ?></td>
						<td align="center"><?php echo $sub['User']['active']==1?"active":"inactive";?></td>
					</tr>
				<?php endforeach;?>
			</table>
			<?php endforeach; ?>
    </div>
</div>
